package com.jly.po.vo;

import com.jly.po.Order;
import com.jly.po.Role;

import java.util.List;

public class UserVO {


    private Integer id;

    private String username;

    private String password;
    //用户具备哪些订单
    private List<Order> orders;
    //用户具备哪些角色
    private List<Role> roles;
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    @Override
    public String toString() {
        return "UserVO{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", orders=" + orders +
                ", roles=" + roles +
                '}';
    }
}
